package chpt02;
public class ForDemo01 {
  	public static void main(String[] args) {
		   int sum = 0; // 变量sum保存累加和
		   for(int i = 1; i <= 4; i++){
			   sum += i;
		   }
		   System.out.println("1-4累加和为："+sum);
    }
}
